package cn.wolfcode.shop.api.service;


import cn.wolfcode.shop.api.domain.Brand;
import cn.wolfcode.shop.api.page.PageResult;
import cn.wolfcode.shop.api.query.BrandQueryObject;

import java.util.List;

public interface IBrandService {

    int save(Brand record);

    int update(Brand record);

    Brand get(Long  id );

    List<Brand> getAll();

    PageResult query(BrandQueryObject qo);
    int deleteBrand(Long id);
    int recoveryBrand(Long id);

    void saveLogoUrl(String logoURL ,Long id); //根据id 保存上传的文件的url

    void editBrandSave(Brand brand);

    void addBrandSave(Brand brand);     //编辑上传

    void saveNewLogoUrl(String logoURL);//新增上传
}
